<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
	<script src="/admin/public/html5shiv.min.js"></script>
	<script src="/admin/public/respond.min.js"></script>
<![endif]-->
<!-- Bootstrap core CSS -->
    	<link href="../newTemplate/css/bootstrap.min.css" rel="stylesheet"/>
    	<!-- <link href="../newTemplate/css/animate.css" rel="stylesheet"/>页面滑动 -->	
	    <link href="../newTemplate/css/inspinia.css" rel="stylesheet"/>
	    <style>
	    	.icheckbox_square-green{
	    		float:left;
	    	}
	    	.form-horizontal input,.form-horizontal select{
	    		margin-left:0;
	    	}
	    	
	    	#wrapper {
			    width: 100%;
			    height: 100%;
			}
	    </style>
<title>系统设置</title>
</head>
<body>
	<div id="wrapper" class="container">
		<div class="wrapper wrapper-content animated fadeInRight">
            <h3><strong>短信配置</strong></h3>
<div class="right_box">
    <div style="border:none;box-shadow:none;" class="right_one row">
        <div class="col-md-12 col-sm-12 col-xs-12" style="float:left;">
            <div class="form-horizontal">
                <div class="tabs-container">
                    <div class="tab-content panel-body">
                   	 <form class="form-horizontal" id="dataform" novalidate="novalidate">
						<div class="form-group">
							<label class="col-lg-2 control-label">服务器地址：</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" data-val="true"
									data-val-required="服务器地址不能为空" data-val-url="地址格式不正确" id="baseUrl"
									name="baseUrl" value="${baseUrl}"/> <span
									class="text-danger field-validation-valid" data-valmsg-for="baseUrl"
									data-valmsg-replace="true"> </span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">账户：</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" data-val="true"
									data-val-required="账户不能为空" id="key" name="key" value="${key }"/>
								<span class="text-danger field-validation-valid"
									data-valmsg-for="key" data-valmsg-replace="true"> </span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">密码：</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" data-val="true"
									data-val-required="密码不能为空" id="password" name="password"
									value="${password }"/> <span
									class="text-danger field-validation-valid"
									data-valmsg-for="password" data-valmsg-replace="true"> </span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">公司名称：</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" data-val="true"
									data-val-required="" id="pre" name="pre"
									value="${pre }"/> <span
									class="text-danger field-validation-valid"
									data-valmsg-for="password" data-valmsg-replace="true">特殊信息格式：【公司名称】 </span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">序列号：</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" data-val="true"
									data-val-required="序列号不能为空" id="sn" name="sn" value="${sn }"/>
								<span class="text-danger field-validation-valid" data-valmsg-for="sn"
									data-valmsg-replace="true"> </span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">特服号：</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" data-val="true"
									data-val-required="特服号不能为空" id="seqId" name="seqId"
									value="${seqId }"/> <span
									class="text-danger field-validation-valid" data-valmsg-for="seqId"
									data-valmsg-replace="true"> </span>
							</div>
						</div>
						<div class="form-group">
		                    <label class="col-lg-2 control-label">可用余额：</label>
		                    <div class="col-lg-6" style="margin-top: 6px">
		                        <span style="font-size: 15px" class="text-danger field-validation-valid" data-valmsg-for="baseUrl" data-valmsg-replace="true">${ balance}</span><span>元</span>
		                    </div>
				        </div>
						<div class="form-group">
							<label class="col-lg-2 control-label">验证码：</label>
							<div class="col-lg-6">
								<textarea name="zcCode" class="form-control" rows="3">${zcCode }</textarea>
								<span class="text-danger field-validation-valid"
									data-valmsg-for="zcCode" data-valmsg-replace="true"> 特殊信息格式：
									验证码:{Code} </span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label"></label>
							<div class="col-lg-6"> 
								<div class="sk-spinner sk-spinner-double-bounce"
									style="margin: inherit; display: none" id="loading">
									<div class="sk-double-bounce1"></div>
									<div class="sk-double-bounce2"></div>
								</div>
								<button type="submit" id="baocun" class="btn btn-success"
									style="width: 93px; height: 40px; text-align: center; background-color: #1a7bb9">保存</button>
							</div>
						</div>
					</form>
                   </div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <input type="hidden" id="Content" name="Content"/>
         </div>
        </div>
    </div>
</div>
 </div>
	<script src="../newTemplate/js/jquery-2.1.1.js"></script>
	<script src="../newTemplate/js/bootstrap.min.js"></script>
	<script src="../newTemplate/js/plugins/pace/pace.min.js"></script>
	<script>

            $("#baocun").click(function(){
            	$.ajax({
       				type:"post",
       				data:$("#dataform").serialize(),
       				url:"/admin/system/dxUpdate",
       				dataType : "json",
       				async:false,
       				success:function(data){
       					alert(data.msg);
       					window.location.href="/system/duanXinPeiZhi";
       				},
       				error:function(data){
       					alert("失败");
       				}
       			}) 
            })
       		   
 
	</script>
</body>
</html>
